{include file='/public/header_min'}

<div class="am-cf admin-main">
    <!-- content start -->
    <div class="admin-content">
        <div class="admin-content-body">
            <hr/>

            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-4 am-u-md-push-8"></div>
                <div class="am-u-sm-12 am-u-md-8 am-u-md-pull-4">
                    <form class="am-form am-form-horizontal" id="ajax-form" action="{:url('/admin/doccatelog/add')}" method="post" data-am-validator>
                        <input type="hidden" name="doc_id" value="{$doc_id}" />
                        <div class="am-form-group">
                            <label class="am-u-sm-3 am-form-label">上级目录</label>
                            <div class="am-u-sm-9">
                                <select name="pid">
                                    <option value="0">-----------选择上级目录-----------</option>
                                    {foreach $top_categories as $category}
                                    <option value="{$category.id}">{$category.name}</option>
                                    {/foreach}
                                </select>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <label for="name" class="am-u-sm-3 am-form-label">目录名称</label>
                            <div class="am-u-sm-9">
                                <input type="text" id="name" name="name" placeholder="目录名称" required>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <button type="submit" class="am-btn am-btn-primary">保 存</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- content end -->
</div>

{include file='/public/footer_min'}